package com.bjpowernode.springboot.web;

//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import redis.clients.jedis.Jedis;
//
//import java.util.Set;
//
///**
///**
// * Copyright (C), 2021-2021, 颜子初
// * Author: yan
// * Date: 2021/11/9 10:48
// * FileName: JedisController
// * Description:
// */
//
//@RestController
//@RequestMapping("/jedis")
//public class JedisController {
////    public static void main(String[] args) {
////        Jedis jedis=new Jedis("192.168.163.128",6379);
////        //String ret= jedis.ping();
////        //System.out.println(ret);
////        jedis.set("k4","v4");
////        jedis.set("k5","v5");
////        Set<String> keys = jedis.keys("*");
////        for(String key:keys){
////            System.out.println(key);
////        }
////    }
////    @ApiOperation(value = "查询")
////    @PostMapping("/query")
////    public void query(){
////        Jedis jedis=new Jedis("",6379);
////        String ret= jedis.ping();
////        System.out.println(ret);
////    }
//}
